import { Tooltip } from 'antd';
import React, { Component } from 'react'


interface IProps {
    codeUrl: string
}

export default class AuthCode extends Component<IProps> {

    render() {
        return (
            <div style={{ userSelect: "none", display: "flex", flexDirection: "column", alignItems: "center", maxWidth: '50%' }}>
                <Tooltip title="点击刷新验证码">
                    <div dangerouslySetInnerHTML={{ __html: this.props.codeUrl }} />
                </Tooltip>
                <div>点击图片刷新</div>
            </div>
        )
    }
}
